package financial.sharing.center.invoice.model.entity;

import financial.sharing.center.common.base.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.ToString;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

/**
 * @ClassName ApproveFlow
 * @Description TODO
 * @Author guoyuhang
 * @ @csdn https://blog.csdn.net/qq_40788718
 * @Date 2021/4/14
 * @Version 1.0
 */
@Data
@AllArgsConstructor
@ToString
@Entity
public class ApproveFlow extends BaseEntity {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;
    /**发票id*/
    private Integer invoiceId;
    /**当前处理人id*/
    private Integer currentApproverId;
    /**下一个处理人id*/
    private Integer nextApproverId;
    /**上一个处理人id*/
    private Integer lastApproverId;
    /**处理标志*/
    private Integer approveFlag;
    /**拒绝理由*/
    private String rejectReason;

    public ApproveFlow() {

    }
}
